﻿using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DirectSell.Model.Message
{
    /// <summary>
    /// 信息请求模型
    /// </summary>
    public class MessageReq
    {
        /// <summary>
        /// 发送人编号
        /// </summary>
        public string SendCode { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime CreateDate { get { return DateTime.Parse(DateTime.Now.ToString()); } }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public string MContent { get; set; }
        /// <summary>
        /// 发送人姓名
        /// </summary>
        public string SendName { get; set; }
        /// <summary>
        /// 发送人手机号
        /// </summary>
        public string SendPhone { get; set; }
        /// <summary>
        /// 接收人编号
        /// </summary>
        public string ReciveCode { get; set; }
        /// <summary>
        /// 状态 0未读 1已读
        /// </summary>
        public int State { get; set; } = 0;
    }
}
